package com.ruoyi.jiuzai.service.impl;

import java.util.List;

import com.ruoyi.jiuzai.domain.Wuzileibie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiuzai.mapper.WuzixinxiMapper;
import com.ruoyi.jiuzai.domain.Wuzixinxi;
import com.ruoyi.jiuzai.service.IWuzixinxiService;

/**
 * 物资信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-19
 */
@Service
public class WuzixinxiServiceImpl implements IWuzixinxiService 
{
    @Autowired
    private WuzixinxiMapper wuzixinxiMapper;

    /**
     * 查询物资信息
     * 
     * @param wuziId 物资信息主键
     * @return 物资信息
     */
    @Override
    public Wuzixinxi selectWuzixinxiByWuziId(Long wuziId)
    {
        return wuzixinxiMapper.selectWuzixinxiByWuziId(wuziId);
    }

    /**
     * 查询物资信息列表
     * 
     * @param wuzixinxi 物资信息
     * @return 物资信息
     */
    @Override
    public List<Wuzixinxi> selectWuzixinxiList(Wuzixinxi wuzixinxi)
    {
        return wuzixinxiMapper.selectWuzixinxiList(wuzixinxi);
    }

    /**
     * 新增物资信息
     * 
     * @param wuzixinxi 物资信息
     * @return 结果
     */
    @Override
    public int insertWuzixinxi(Wuzixinxi wuzixinxi)
    {
        return wuzixinxiMapper.insertWuzixinxi(wuzixinxi);
    }

    /**
     * 修改物资信息
     * 
     * @param wuzixinxi 物资信息
     * @return 结果
     */
    @Override
    public int updateWuzixinxi(Wuzixinxi wuzixinxi)
    {
        return wuzixinxiMapper.updateWuzixinxi(wuzixinxi);
    }

    /**
     * 批量删除物资信息
     * 
     * @param wuziIds 需要删除的物资信息主键
     * @return 结果
     */
    @Override
    public int deleteWuzixinxiByWuziIds(Long[] wuziIds)
    {
        return wuzixinxiMapper.deleteWuzixinxiByWuziIds(wuziIds);
    }

    /**
     * 删除物资信息信息
     * 
     * @param wuziId 物资信息主键
     * @return 结果
     */
    @Override
    public int deleteWuzixinxiByWuziId(Long wuziId)
    {
        return wuzixinxiMapper.deleteWuzixinxiByWuziId(wuziId);
    }

    @Override
    public List<Wuzileibie> chaName() {
        return wuzixinxiMapper.chaName();
    }
    @Override
    public List<Wuzixinxi> selectWuzixinxiListWithLeibie(Wuzixinxi wuzixinxi) {
        return wuzixinxiMapper.selectWuzixinxiListWithLeibie(wuzixinxi);
    }

}
